package com.lb.dao;



import java.util.List;

import com.lb.bean.Message;
import com.lb.bean.User;

public interface UserDAO {
   
	public User findUserById(Integer id);
	
	public void saveUser(User user);

	public void removeUser(User user);

	public void updateUser(User user);
	
	
	public User findUserByNameAndPass(String accountName,String password);
	
	public User findUserByName(String accountName);
	
	public User getPasswordByQuestionAndAnswer(String accountName,String question,String answer);
	
	public List<Message> findMessageByaccountName(String accountName);
	
	
}
